package com.hzspace.controller;

import com.hzspace.service.HelloService;
import jdk.nashorn.internal.runtime.logging.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: LiuHao
 * @Descirption:
 * @Date: 2020/2/25_20:41
 */
@RestController
public class HelloController {

    @Autowired
    HelloService helloService;

    @GetMapping(value = "/hello", produces = "text/html;charset=utf-8")
    public Object hello(){
        return helloService.sayHello();
    }
}
